
Page({
    data: {
        
      userInfo:{},
      showList:[]
        
    },
    onLoad:function(opt){
      

     
    },
    onShow:function(){
         var userInfo= wx.getStorageSync('userInfo');
        this.setData({
            userInfo:userInfo
        })
         this.getMyCollect();
     
    },
     getMyCollect:function () {
         
        var _self=this;
         wx.request({
            url:getApp().globalData.baseUrl+'/wx/follow/user/list?openid='+this.data.userInfo.openid,
            method:"GET",
            header: {
                'openid':this.data.userInfo.openid, //公用请求头
                'content-type': 'application/json'
            },
            success: function(res) {
           
             console.log(res)
             _self.setData({
                showList:res.data.obj.list
             })
             if (res.data.code==200) {

             }else{
              
             }
         }
     })
             
    },
   
    onMyEvent:function(e){
      
    }, eredarClick (e) { // 达人详情
      var id=e.currentTarget.dataset.code;
    
      wx.navigateTo({
            url: '/pages/eredarDetail/eredarDetail?openid='+id
        })
    },
});